Home Javascript SDK Rest API/SSO Webhooks AppMarket Login

Method: /Stores/CreateOrder

Endpoint

https://api.cashcow.co.il/Api/Stores/CreateOrder

Method

HttpPost

Authentication

this method require a valid account access token. (parameter: token)

Permissions

Request

parameter Description Type Required
store_id Account Store Id (for Authentication) Int True
cart JSON stringify Cart object (see details) string True
is_confirm_payment true if to confirm the order without typing credit card. false = you will get payment_url to redirect user to type credit card Bool False
success_url Optional: success url after payment done by credit card (optional only if is_confirm_payment = false) string False
failed_url Optional: failed url after payment done by credit card (optional only if is_confirm_payment = false) string False
token account access token string True

Response

Returns a valid JSON type.

Name Type Description
order_id Int32
payment_url String
token String
response_time DateTime
state_id ResultState