POST
/
api
/
payments
/
payments
curl --request POST \
  --url http://localhost:55001/api/payments/payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "reference": "<string>",
  "connectorID": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "amount": 100,
  "type": "PAY-IN",
  "status": "PENDING",
  "scheme": "unknown",
  "asset": "USD",
  "sourceAccountID": "<string>",
  "destinationAccountID": "<string>"
}'
{
  "data": {
    "id": "XXX",
    "reference": "<string>",
    "sourceAccountID": "<string>",
    "destinationAccountID": "<string>",
    "connectorID": "<string>",
    "provider": "STRIPE",
    "type": "PAY-IN",
    "status": "PENDING",
    "initialAmount": 100,
    "amount": 100,
    "scheme": "unknown",
    "asset": "USD",
    "createdAt": "2023-11-07T05:31:56Z",
    "raw": {},
    "adjustments": [
      {
        "reference": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "status": "PENDING",
        "amount": 100,
        "raw": {}
      }
    ],
    "metadata": {}
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Response

200
application/json

OK

The response is of type object.