Skip to content

Pricing Payment

Kyle (Qiankang) Zhou edited this page Nov 11, 2017 · 7 revisions

Pricing / Payment

Get Pricing Info

Protocol

Element Data
url /pricing
method GET
headers none

Request Body

none

Response Body

200

{
    Pricing[]
}

Errors

Status Code Type
500 Internal Server Error

Purchase Vendor/Customer Access

URL

/api/access

URL Params

None

Method

POST

Header

Key Required Description
token Yes Authorization Token

Request Body

Key Type Required Description
stripeToken.id String Yes Stripe Token Id
type String Yes Access Type
Example
{
    "token": {
        "id": "tok_123qwe123qwe123erewt34",
        "object": "token",
        "card": {
            "id": "card_123qwe123wqe",
            "object": "card",
            "address_city": null,
            "address_country": null,
            "address_line1": null,
            "address_line1_check": null,
            "address_line2": null,
            "address_state": null,
            "address_zip": null,
            "address_zip_check": null,
            "brand": "Visa",
            "country": "US",
            "cvc_check": "pass",
            "dynamic_last4": null,
            "exp_month": 1,
            "exp_year": 2018,
            "funding": "credit",
            "last4": "4242",
            "metadata": {},
            "name": "[email protected]",
            "tokenization_method": null,
            "fingerprint": "efwgqf1231313",
            "customer": null,
            "type": "Visa"
        },
        "client_ip": "50.11.222.333",
        "created": 1510364686,
        "email": "[email protected]",
        "livemode": false,
        "type": "card",
        "used": false
    }, 
    "type": "VENDOR_SUBSCRIPTION",
    "count": 1
}

Response On Success

Code

200 OK

Content Example
{
    "message": "Success"
}

Response On Error

Code

400 Bad Request

Content Example
{
    "message": "Malformed Request"
}
Code

409 Conflict

Content Example
{
    "message": "Requested Access Type Already Exists"
}
Code

500 Internal Server Error

Content Example
{
    "message": "Internal Server Error"
}