Skip to content

Create a Customer

POST
/customers
curl --request POST \
--url http://pay.caspeco.net/customers \
--header 'Content-Type: application/json' \
--header 'Date: Tue, 15 Nov 2014 08:12:31 GMT' \
--header 'Digest: SHA-256=7oaYBB1oQVPy1BvP2ndYtxdD5EWNynt9lxCHzOdXb1A=' \
--header 'Host: pay.caspeco.net' \
--header 'Location: http://pay.caspeco.net/v1/customers' \
--data '{ "Id": "46731231231", "PersonalIdentityNumber": "881125-1084", "Merchant": 3, "Msisdn": "46760504040", "Email": "test@example.com", "PaymentMethod": "invoice", "InstallationId": 1 }'

Register a new customer.

Location
string
Example
http://pay.caspeco.net/v1/customers
Host
string

E.g. pay.caspeco.net

Example
pay.caspeco.net
Date
string

E.g. Tue, 15 Nov 2014 08:12:31 GMT

Example
Tue, 15 Nov 2014 08:12:31 GMT
Digest
string

E.g. SHA-256=7oaYBB1oQVPy1BvP2ndYtxdD5EWNynt9lxCHzOdXb1A=

Example
SHA-256=7oaYBB1oQVPy1BvP2ndYtxdD5EWNynt9lxCHzOdXb1A=
Media typeapplication/json
object
Id
string
PersonalIdentityNumber
string
Merchant
integer
Msisdn
string
Email
string
PaymentMethod
string
InstallationId
integer
Example
{
"Id": "46731231231",
"PersonalIdentityNumber": "881125-1084",
"Merchant": 3,
"Msisdn": "46760504040",
"Email": "test@example.com",
"PaymentMethod": "invoice",
"InstallationId": 1
}

Created

Media typeapplication/json
object
Id
string
PersonalIdentityNumber
string
Merchant
integer
Msisdn
string
Email
string
PaymentMethod
string
Examples
Exampleresponse
{
"InitialPortalPassword": "abcd1234"
}