CRM Integration
If the shopper can't access your checkout process—for example, you're a call center using a CRM or a physical store with POS software—you can send the form directly to the shopper.
This section describes how to send the form URL to the shopper. Make a POST to the form_deliveries resource of the order UUID. Required parameters:
channel: How to send the form URL (currently onlysms)product_code: The financing product to sell (e.g.,pp3= part payment)campaign: Required when offering PP5—specify the campaign name
$ SQPASS='yourAccountKey:yourAccountSecret'
$ curl -i -X POST -u $SQPASS -k \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data-binary '{ "channel": "sms", "product_code": "pp3" }' \
https://sandbox.sequrapi.com/orders/1dc26b35-06f6-41d6-b6f5-d0eb6c66aad1/form_deliveries
On success, you'll get HTTP 204 (No Content):
HTTP/1.1 204 No Content
Server: nginx/1.2.1
Date: Thu, 20 Nov 2014 17:05:04 GMT
Connection: keep-alive
Status: 204 No Content
On error, you'll receive a 4xx status code.
Testing from outside Spain
seQura only sends SMS to Spanish mobile numbers. If you're developing from another country without a Spanish SIM, you can build the SMS link manually:
https://sandbox.sequrapi.com/orders/1dc26b35-06f6-41d6-b6f5-d0eb6c66aad1/pumbaa_form?product=pp3
Important: Don't do this in production. The identification form must be delivered to the shopper's mobile phone, or the credit will be rejected.
Updated 20 days ago