Receivables

Create a Receivable

Changed on

Create a Receivable to be paid by one of your Customers.

post/v1/receivables

Request

Headers

Idempotency-Keystring

An idempotency key to prevent duplicate requests. All requests with the same key will be considered attempts for the same request.

These keys are stored for a period of 24 hours. To ensure these keys are sufficiently tied to a request, we recommend either storing generated idempotency keys alongside your payment data, or using a hash of the request JSON itself to generate your idempotency key.

Request body

OR

Example request

{
  "deposit_into_account": "8c581d79-bb84-4bc1-b1c5-8c073264a569",
  "due_from_company": "8c581d79-bb84-4bc1-b1c5-8c073264a569",
  "due_on": "2022-11-11",
  "send_on": "2022-11-26"
}

Response

OK

OR

Example response

{
  "created_at": "2021-05-15T03:49:53.299680+00:00",
  "deposit_into_account": {
    "type_details": {
      "primary_color": "#0075a3"
    }
  },
  "send_on": "2022-11-26"
}

Changes

    • breaking

      the response property ///////// became optional for the status

    • warning

      changed the pattern of the request property ////////// from ^data:(text\/csv|application\/vnd.openxmlformats-officedocument.wordprocessingm1.document|image\/jpeg|application\/pdf|image\/png|text\/plain|application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet){1};base64, to ^data:(text\/csv|application\/vnd.openxmlformats-officedocument.wordprocessingml.document|image\/jpeg|application\/pdf|image\/png|text\/plain|application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet){1};base64,

    • warning

      added the new GHS enum value to the //////////// response property for the response status

    • warning

      added the new GHS enum value to the //////////// response property for the response status

    • warning

      added the new GHS enum value to the //////////// response property for the response status

    • warning

      added the new GHS enum value to the //////////////// response property for the response status

    • warning

      added the new GHS enum value to the //////////////// response property for the response status

    • warning

      added the new GHS enum value to the //////////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////////// response property for the response status

    • warning

      added the new MOP enum value to the //////////////// response property for the response status

    • info

      added the new GHS enum value to the request property ////////////

    • info

      added the new MOP enum value to the request property ////////////

    • info

      removed the new enum value from the //////// response property for the response status

    • info

      removed the new enum value from the //////////// response property for the response status

    • info

      added the required property /////////////// to the response with the status