Attach payments to a specific collection
PUT/api/v1/collections/:id/payments
Associate one or more payments with a given collection
Request
Path Parameters
Header Parameters
- application/json
Body
arrayrequired
- Array [
- ]
Reference for the payment
paymentAmount objectrequired
The specific monetary value that is being converted from in the currency exchange
Possible values: Value must match regular expression [A-Z]{3}
The type of currency that the money is being exchanged from
receipt objectrequired
Receipt file in Base64-encoded format
The MIME type of the file, such as 'application/pdf' for a PDF file or 'image/jpeg' for a JPEG image
The name of the file, including the file extension
The content of the file, encoded as a Base64 string
Responses
- 200
- 400
- 401
- 403
- 404
- 405
- 415
- 429
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
Unique identifier of the collection
Short ID of the collection
collectionStatus object
Status of a collection
Possible values: [PENDING
, SUCCESS
, FAILED
]
The state of a collection
Possible values: [PENDING
, PENDING_AWAITING_DOCUMENT
, FAILED
, FAILED_DECLINED_NANE_MISSMATCH
, FAILED_DECLINED_OTHER
, FAILED_TIMED_OUT_NOT_RECEIVED
, SUCCESS
]
The reason for the state of a collection
Completion status
External identifier for the collection request
sender objectrequired
Information about the sender initiating the collection
Name of the sender's company
Account identifier of the sender, IBAN or local account number
Email address of the sender
Contact number of the sender
UUID of the wallet receiving the funds
UUID of the exchange quote if linking to onward exchange
UUID of the collection processing fee
invoices object[]required
List of invoices associated with the collection request
Reference for the invoice document
Name of the seller on the invoice
grossAmount objectrequired
The specific monetary value that is being converted from in the currency exchange
Possible values: Value must match regular expression [A-Z]{3}
The type of currency that the money is being exchanged from
document object
Receipt file in Base64-encoded format
The MIME type of the file, such as 'application/pdf' for a PDF file or 'image/jpeg' for a JPEG image
The name of the file, including the file extension
payments object[]
List of payments associated with the collection request
Reference for the payment
paymentAmount objectrequired
The specific monetary value that is being converted from in the currency exchange
Possible values: Value must match regular expression [A-Z]{3}
The type of currency that the money is being exchanged from
receipt objectrequired
Receipt file in Base64-encoded format
The MIME type of the file, such as 'application/pdf' for a PDF file or 'image/jpeg' for a JPEG image
The name of the file, including the file extension
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"shortId": "TR123",
"collectionStatus": {
"state": "PENDING",
"reason": "PENDING",
"complete": false
},
"externalId": "string",
"sender": {
"companyName": "string",
"accountIdentifier": "string",
"email": "string",
"contactNumber": "string"
},
"receivingWalletId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"exchangeQuoteId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"quoteId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"invoices": [
{
"documentReference": "string",
"sellerName": "string",
"grossAmount": {
"amount": 100,
"currency": "USD"
},
"document": {
"mediaType": "application/pdf",
"name": "document.pdf"
}
}
],
"payments": [
{
"paymentReference": "PAY123456789",
"paymentAmount": {
"amount": 100,
"currency": "USD"
},
"receipt": {
"mediaType": "application/pdf",
"name": "document.pdf"
}
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Not Found
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Method Not Allowed
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Unsupported Media Type
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
properties object
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"properties": {}
}