ValeronDocs

Payments

Update a payment

PATCH/v1/payments/{payment_id}

Requires the scope payments:write

Change a payment that was logged by hand.

#Path parameters

payment_idstringrequired

#Request body

application/json
amountinteger or null
Maximum: 1000000000000
contact_idstring or null
currencystring or null
notestring or null
paid_atstring (date-time) or null
statusstring or null
Allowed values: "succeeded" "pending" "failed" "refunded"

#Responses

200Successful 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.

StatusMeaning
400The request is not valid.
401Not signed in, or the credentials are not valid.
402The balance is too low.
403Not allowed to do this.
404Not found.
409Conflicts with the current state.
413The request body is too large.
415The content type is not supported.
422A value in the request is not valid.
429Too many requests. Wait for Retry-After seconds.
500Something went wrong on our side.
502A service Valeron depends on refused the request.
503A service Valeron depends on is unavailable.