v1

latestOpenAPI 3.0.32026-07-2476126451.9 KB
v1.1

Create card token

Create a card token for a customer

post/api/v1.4/tokens/cards/

Request body

idstring required
customerstring required

Customer UUID

webhook_urlstring uri required

A url that Moneyhash server will send a POST request to with payment data after payment.

payment_providerstring

PayIn method ID

card_token_type'UNIVERSAL' | 'PROVIDER'
  • UNIVERSAL - UNIVERSAL
  • PROVIDER - PROVIDER
successful_redirect_urlstring uri

A url that Moneyhash will redirect users to after a successful payment.

failed_redirect_urlstring uri

A url that Moneyhash will redirect users to after a failed payment.

{"stackTrail":"components:schemas:CreateCardToken:properties:custom_webhook_headers","oasType":"schema","type":"unknown","description":"Custom headers to be sent in the webhooks."}
vault_region'sa' | 'default' | ''
  • sa - sa
  • default - default
network_tokenizeboolean

Whether the card is network tokenized or not

createdstring date-time required
modifiedstring date-time required
redirect_strategy'redirect_inside_embed' | 'redirect_entire_window' | 'redirect_to_new_tab' | '' | 'null' nullable
  • redirect_inside_embed - redirect_inside_embed
  • redirect_entire_window - redirect_entire_window
  • redirect_to_new_tab - redirect_to_new_tab
hide_headerboolean
form_onlyboolean
statusstring
for_sandboxboolean required

This field used to filter data to be used in sandbox

{"stackTrail":"components:schemas:CreateCardToken:properties:custom_fields","oasType":"schema","type":"unknown","nullable":true}
merchant_referencestring nullable

Response

idstring required
hide_headerboolean
standalone_tokenizationboolean required
form_onlyboolean