Updates the payment method for the specified purchase invoice payment.
Headers
-
API token (can be retrieved from account settings)
-
ID of organization, for which the operation must be performed
PATCH
/api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/payment-method
curl \
--request PATCH 'https://wyzio.app/api-v1/purchase-invoice/{invoiceId}/payment/{paymentId}/payment-method' \
--header "Content-Type: application/json" \
--data '{"id":12345678}'
Request examples
# Headers
# Payload
{
"id": 12345678
}
Response examples (200)
{
"error": {
"errorCode": "NO_ERROR",
"errorDetailValues": [
{
"errorCode": "string",
"fieldName": "string",
"data": "string",
"isSevere": true
}
]
},
"valid": true
}