Transactions
Create transaction (unverified user)
POST
/
api
/
transactions
/
create_unverified
Authorization
Body
{
"verification_id": "5bcbf7ac-c998-46ce-aa6e-a0c1a3f1f5bd",
"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
Authorizationheaderrequired
string
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
application/json
amount
number
idempotency_key
string
An optional idempotency key to prevent duplicate transactions, must be a valid uuid
notes
object
receipt
object
verification_id
string
Response
200 - application/json
message
string
Error message if success is false
success
boolean
transaction
object
{
"verification_id": "5bcbf7ac-c998-46ce-aa6e-a0c1a3f1f5bd",
"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"
}
}