Update Payment Status

DEPRECATED

Update the payment link to reflect various stages of payment processing.

NOTE: This is automatically updated by our system, and should not be updated manually. This will be deprecated in a future release.

PATCH/api/v1/ypp/payment-links/{paymentLinkId}/payment

Update the payment link to reflect various stages of payment processing.

NOTE: This is automatically updated by our system, and should not be updated manually. This will be deprecated in a future release.

Path Parameters

paymentLinkIdpathrequired

The ID of the payment link

Request Body

object
actionstringrequired

Trigger an action related to payment processing.

  • start: Initiate an asynchronous payment (e.g., us_bank_account). This will set the payment status to processing.
  • complete: Complete a payment. This will set the payment status to completed.
  • cancel: Cancel a payment. This can be used if an asynchronous payment is canceled. This will allow the payment link to be re-used for a future payment.
  • failed: Mark a payment as failed. This can be used if an asynchronous payment fails. This will allow the payment link to be re-used for a future payment.
Allowed values:startcompletecancelfailed
stripePaymentIntentIdstring

[DEPRECATED] - No longer used.

Responses

200Default Response
RequestPATCH/api/v1/ypp/payment-links/{paymentLinkId}/payment
curl 'https://api.theyeeld.com/api/v1/ypp/payment-links/{paymentLinkId}/payment' \
  --request PATCH \
  --header 'Content-Type: application/json' \
  --data '{
  "action": null,
  "stripePaymentIntentId": "string"
}'
Response
{
"id": "string",
"url": "string",
"enabled": false,
"createdAt": "string",
"updatedAt": "string",
"paymentStatus": null,
"patronEmail": "string",
"patronLocation": {
"country": "string",
"stateProvince": "string"
},
"totalAmount": 0,
"patronCanEnterAmount": false,
"disabledPaymentOptions": [
null
],
"name": "string",
"additionalData": [
{
"type": null,
"key": "string",
"label": "string",
"required": false,
"valueForDisplay": "string",
"value": null,
"addToReceipt": false
}
],
"taxes": {
"taxRate": 0,
"taxAmount": 0
},
"patronUsState": null
}