neo-pays

Splits

Generated page, from the OpenAPI specification the gateway serves (GET /v1/openapi.json). Do not edit it by hand: it is rewritten on every build.

Method Path Description
GET /v1/payments/{id}/splits The shares of a payment
POST /v1/payments/{id}/splits Split a payment

GET /v1/payments/{id}/splits

The shares of a payment

The shares already allocated, with their settlement state.

Parameters

Name In Required Description
id path yes

Responses

  • 200 — OK
  • 401 — API key missing or rejected
  • 403 — The key does not carry the required scope, or the account is not active
  • 404 — No payment with that identifier
  • 429 — The key's request budget is exhausted (300/min) — honour Retry-After

POST /v1/payments/{id}/splits

Split a payment

Allocates shares of a successful payment to other accounts on the platform — what a marketplace does when it pays its sellers.

⚠️ THE SPLIT IS WRITTEN IN THE SAME TRANSACTION AS THE PAYMENT, which makes it impossible to split more than was collected: the parent is revalidated under lock and the whole thing is refused rather than part of it. A marketplace splitting in two steps would have to handle “collected but not yet split”; that state does not exist here.

fee_minor is TAKEN OUT OF amount_minor, not added on top: the beneficiary receives amount − fee.

Parameters

Name In Required Description
id path yes The payment to split: identifier, reference, or your client_ref.
Idempotency-Key header no An idempotency key specific to THIS operation.

Responses

  • 201 — Shares created
  • 401 — API key missing or rejected
  • 403 — The key does not carry the required scope, or the account is not active
  • 404 — No payment with that identifier on this account
  • 422 — Beneficiary unknown or inactive, beneficiary equal to yourself, operation not collected, or total greater than the parent
  • 429 — The key's request budget is exhausted (300/min) — honour Retry-After