Payments

Use when you need to charge or process a payment (e.g. trigger the payment provider to capture funds). Returns updated payment with status.

post/payments/{id}/process

Request

  • Base URL
    https://us.api.flexprice.io/v1
  • URL
    https://us.api.flexprice.io/v1/payments/{id}/process
  • Auth
    API key in header x-api-key

Path parameters

idstring required

Payment ID

Response

Processed payment

amountstring
created_atstring date-time
created_bystring
currencystring
destination_idstring
destination_type'INVOICE' | 'CUSTOMER'
environment_idstring
error_messagestring
failed_atstring date-time
gateway_metadataTypesMetadata
gateway_payment_idstring
gateway_tracking_idstring
idstring
idempotency_keystring
invoice_numberstring
metadataTypesMetadata
payment_gatewaystring
payment_method_idstring
payment_method_type'CARD' | 'ACH' | 'OFFLINE' | 'CREDITS' | 'PAYMENT_LINK' | 'UPI'
payment_status'INITIATED' | 'PENDING' | 'PROCESSING' | 'SUCCEEDED' | 'OVERPAID' | 'FAILED' | 'REFUNDED' | 'PARTIALLY_REFUNDED' | 'VOIDED'
payment_urlstring
refunded_atstring date-time
save_card_and_make_defaultboolean
succeeded_atstring date-time
tenant_idstring
track_attemptsboolean
updated_atstring date-time
updated_bystring
voided_atstring date-time

Changes

    • info

      added the optional property to the response with the status

    • warning

      added the new UPI enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status

    • warning

      added the new not_implemented enum value to the response property for the response status