Log a payment
POST
/v1/paymentsRequires the scope payments:write
Log a payment made outside a connected processor.
#Header parameters
Idempotency-Keystring or null
#Request body
application/json
amountintegerrequired
contact_idstring or null
currencystringrequired
notestring or null
paid_atstring (date-time) or null
statusstring
#Responses
201Successful Response
Show response fieldsHide response fields
amountobjectrequired
Show child attributesHide child attributes
amountintegerrequired
currencystringrequired
contactobject or nullrequired
Show child attributesHide child attributes
idstringrequired
namestring or nullrequired
created_atstring (date-time)required
idstringrequired
logged_byobject or nullrequired
Show child attributesHide child attributes
idstringrequired
namestring or nullrequired
notestring or nullrequired
paid_atstring (date-time) or nullrequired
payer_emailstring or nullrequired
payer_namestring or nullrequired
processor_payment_idstring or nullrequired
refunded_amountintegerrequired
sourceobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
statusobjectrequired
Show child attributesHide child attributes
labelstringrequired
valuestringrequired
updated_atstring (date-time)required
#Errors
Errors use the standard error shape.
| Status | Meaning |
|---|---|
400 | The request is not valid. |
401 | Not signed in, or the credentials are not valid. |
402 | The balance is too low. |
403 | Not allowed to do this. |
404 | Not found. |
409 | Conflicts with the current state. |
413 | The request body is too large. |
415 | The content type is not supported. |
422 | A value in the request is not valid. |
429 | Too many requests. Wait for Retry-After seconds. |
500 | Something went wrong on our side. |
502 | A service Valeron depends on refused the request. |
503 | A service Valeron depends on is unavailable. |
