Payment Channel

api/payment/channel endpoint documentation


New payment channel

Description Creates new payment channel for a given store. If the store_uuid is not explicitly passed during the call to the endpoint then the payment will be assigned to the last created store in the account.
Endpoint url api/payment/channel/create
Method POST
Params
Required
Headers
Name Type Value Description
token string - The token obtained during the account creation call.
Data params
Name Type Value Description
name string - Name for the created delivery channel.
Optional
Data params
Name Type Value Description
store_uuid string - If the parameter is not given then the payment channel will be assigned to the last created store in the account.
note string - A short note that will be shown to a user about the payment channel.
gateway_url string - A payment service provider's website (payment gateway) where a user will be redirected after the order has been completed and needs to be paid.
method string post|get An HTTP method that will be used to redirect user to the payment gateway.
variables string CSV formatted text An additional set of variables that need to be sent to the payment gateway (depending on service provider).
Success response

{
    "code": 200,
    "body": {
        "data": {
            "uuid": "68ac9b6f-96e6-4b65-abeb-8bc4c63b35dc",
            "store": {
                "uuid": "fdab1d05-6dc0-575d-8916-78e84ce8ccc2"
            }
        }
    }
}
Error response If wrong/non-existing store_uuid given:

{
    "code": 422,
    "body": {
        "data": [],
        "errors": {
            "store_uuid": [
                "The given store uuid could not be found."
            ]
        }
    }
}

https://clickstore.pl © 2018 / Wyklikaj Sklep Bez Pomocy Innych / Przycisk "Kup Teraz" z Koszykiem & Kreator Landing Page w Jednym.