EaserixDocs
DevelopersAPI referenceSignPayments

A document's payments, with refund and failure state (EAS-119)

What the sender needs to see: each payment's status (requires_payment, processing, succeeded, failed, canceled, refunded, partially_refunded, disputed), the Stripe reference, any failure reason, and the refunded amount. Empty for a document with no payment field.

View as Markdown
GET
/v1/documents/{id}/payments
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/documents/string/payments"
{  "payments": [    {      "id": "string",      "fieldId": "string",      "recipientId": "string",      "status": "requires_payment",      "amountMinor": 0,      "currency": "string",      "refundedMinor": 0,      "failureCode": "string",      "failureMessage": "string",      "paymentIntentId": "string",      "succeededAt": "2019-08-24T14:15:22Z",      "refundRequestedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z"    }  ]}