# Create a new site payment mandate Endpoint: POST /site-payment-mandates Version: 1.37 Security: bearerAuth ## Request fields (application/json): - `redirectURL` (string) URL to the site payment provider to give to end users - `siteId` (integer, required) Site identifier Example: 1 - `returnURL` (string, required) URL the payment provider will redirect the browser to at the end of their data collection process - `exitURL` (string) URL to an alternative payment page when payment provider unavailable ## Response 200 fields (application/json): - `id` (integer) Site payment mandate identifier Example: 1 - `redirectURL` (string) URL to the site payment provider to give to end users - `flowToken` (string) token from payment provider to confirm mandate - `siteId` (integer, required) Site identifier Example: 1 - `returnURL` (string, required) URL the payment provider will redirect the browser to at the end of their data collection process - `mandateReference` (string) Mandate reference. Required when the paymentType is an integrated one, for example GO_CARDLESS, FINASTRA or STRIPE. If GO_CARDLESS, only accepted Created, Pending Submission, Submitted, Active, Reinstated, Customer approval granted and Customer approval skipped - `thirdPartyCustomerReference` (string) Reference to a customer in a third party system. For example, Stripe Customer ID (mandatory if a Stripe mandate is provided), or optional references like GO_CARDLESS Customer Reference or FINASTRA Account Number - `exitURL` (string) URL to an alternative payment page when payment provider unavailable ## Response 201 fields (application/json): - `id` (integer) Site payment mandate identifier Example: 1 - `redirectURL` (string) URL to the site payment provider to give to end users - `flowToken` (string) token from payment provider to confirm mandate - `siteId` (integer, required) Site identifier Example: 1 - `returnURL` (string, required) URL the payment provider will redirect the browser to at the end of their data collection process - `mandateReference` (string) Mandate reference. Required when the paymentType is an integrated one, for example GO_CARDLESS, FINASTRA or STRIPE. If GO_CARDLESS, only accepted Created, Pending Submission, Submitted, Active, Reinstated, Customer approval granted and Customer approval skipped - `thirdPartyCustomerReference` (string) Reference to a customer in a third party system. For example, Stripe Customer ID (mandatory if a Stripe mandate is provided), or optional references like GO_CARDLESS Customer Reference or FINASTRA Account Number - `exitURL` (string) URL to an alternative payment page when payment provider unavailable ## Response 400 fields ## Response 401 fields ## Response 403 fields