{
  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
  "amount": 0,
  "receipt": {
    "items": [
      {
        "name": "string",
        "unit_amount": 0,
        "quantity": 0,
        "description": "string"
      }
    ],
    "breakdown": {
      "items_total": 0,
      "tax": 0,
      "shipping": 0
    }
  },
  "notes": {},
  "idempotency_key": "0cd90e5a-2c03-4ab6-81a8-d48818026e58"
}
{
  "success": true,
  "message": "string",
  "transaction": {
    "id": 0,
    "date": "string",
    "source_username": "string",
    "destination_username": "string",
    "amount": 0,
    "type": "credit",
    "completed": true,
    "notes": {},
    "receipt": {
      "items": [
        {
          "name": "string",
          "unit_amount": 0,
          "quantity": 0,
          "description": "string"
        }
      ],
      "breakdown": {
        "items_total": 0,
        "tax": 0,
        "shipping": 0
      }
    },
    "credit_transaction_id": "string"
  }
}

Authorizations

Authorization
string
headerrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
user_id
string
amount
number
receipt
object
notes
object
idempotency_key
string

An optional idempotency key to prevent duplicate transactions, must be a valid uuid

Response

200 - application/json
success
boolean
message
string

Error message if success is false

transaction
object