Get self payment by Id

📘

API Refs

URI parameters

NameTypeDescriptionRequired
paymentIdstringpayment Idyes

Response body

NameTypeDescriptionRequired
idnumberId of payment. Can be used for any payment operations.yes
transactionIdstringPayment transaction Id. It can be seen in the application in the transaction history.yes
amountnumberPayment amount without any fees.yes
customerIdnumberThe Id of the insured who will receive the payment or has already received it.yes
customerNamestringName of the insured who will receive the payment or has already received it.yes
merchantNamestringName of the insurer who will send the payment or has already sent it.yes
feenumberFee for the payment amount. It will only be different from zero when this payment is sent.yes
feeDeductFromstringWhich side of the transfer will pay the fee.yes
statusstringStatus of payment. Main statuses: Awaiting-cash-out, Canceled, Preparing to mail, In-transit, Settledyes
typestringType of payment. Can be only of two types: ACH or paper check with delivery type.yes
memostringA string with a maximum length of 280 characters.no
createdAtDateCreation dateyes

Example

  1. Get list of self payments Request;
  2. Get list of self payments Response:
    [
      {
        "id": 1,
        "transactionId": "a444aa44-aaa4-4a4a-aaaa-a44a44444a44",
        "amount": 10.23,
         "createdAt": "2023-08-09T15:42:26.683Z",
        "customerId": 1,
        "customerName": "John Smith",
        "merchantName": "Jake Merchant",
        "fee": "0.00",
        "feeDeductFrom": null,
        "status": "Awaiting-cash-out",
        "type": "--",
        "memo": ""
      },
      {
        "id": 2,
        "transactionId": "a555aa55-aaa5-5a5a-aaaa-a55a55555a55",
        "amount": 30.08,
        "createdAt": "2023-08-09T17:40:00.241Z",
        "customerId": 1,
        "customerName": "John Smith",
        "merchantName": "Jake Merchant",
        "fee": "0.00",
        "feeDeductFrom": null,
        "status": "Awaiting-cash-out",
        "type": "--",
        "memo": ""
      }
    ]
    
  3. Get self payment by Id Request with id = 1;
  4. Get self payment by Id Response:
    {
      "id": 1,
      "transactionId": "a444aa44-aaa4-4a4a-aaaa-a44a44444a44",
      "amount": 10.23,
      "createdAt": "2023-08-09T15:42:26.683Z",
      "customerId": 1,
      "customerName": "John Smith",
      "merchantName": "Jake Merchant",
      "fee": "0.00",
      "feeDeductFrom": null,
      "status": "Awaiting-cash-out",
      "type": "--",
      "memo": ""
    }
    

Description

📘

Where to get payment id?

You can get all existing payments. Go to Get list of self payments for more information about it.

You can return information about a specific payment that you sent.
Payment Id can be used in other requests of our API in the paymentId parameter