Last updated 1 year ago
OK
const response = await fetch('/Payments', { method: 'GET', headers: {}, }); const data = await response.json();
{ "results": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "paymentDate": "2024-11-21T06:38:03.790Z", "scheduleDate": "2024-11-21T06:38:03.790Z", "handle": "text", "description": "text", "reference": "text", "currency": "text", "test": false, "status": "Pending", "settlementDate": "2024-11-21T06:38:03.790Z", "createdAt": "2024-11-21T06:38:03.790Z", "modifiedAt": "2024-11-21T06:38:03.790Z" } ], "nextOffset": "text", "hasMore": false }
const response = await fetch('/Payments', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();
{ "id": "123e4567-e89b-12d3-a456-426614174000", "paymentDate": "2024-11-21T06:38:03.790Z", "scheduleDate": "2024-11-21T06:38:03.790Z", "handle": "text", "description": "text", "reference": "text", "currency": "text", "test": false, "status": "Pending", "statusText": "text", "settlementDate": "2024-11-21T06:38:03.790Z", "createdAt": "2024-11-21T06:38:03.790Z", "modifiedAt": "2024-11-21T06:38:03.790Z", "mandate": { "handle": "text", "scheme": "text", "status": "Created", "customerId": "123e4567-e89b-12d3-a456-426614174000" } }