Create voucher

Request:

POST https://api.moneypipe.com/sandbox/v1/vouchers

Request headers:

Name Value
Authorization Bearer {company_token}
Content-Type application/json

Request body:

Body
{
	"amount": "0.012",
	"currency": "ETH"
}

Body details:

Parameter Type Description

amount *

string

Amount set

currency *

string

Currency of voucher

* - required

Response:

201

Body
{
    "data": {
        "id": "0abbdb1117499a4e6cbd",
        "amount": "0.012",
        "currency": "ETH",
        "code": "6f7b34f9bfb5290ae8f6c87c512c5eee8baaa8a90d233b9b658ca98352a1",
        "status": "new",
        "type": "issued",
        "created_at": "2020-05-04T14:01:25.000000Z",
        "updated_at": "2020-05-04T14:01:25.000000Z"
    }
}

Voucher details:

Parameter Type Description
id string Voucher ID
amount string Voucher amount
currency string Currency of issued voucher
code string Code of issued voucher
status string Voucher status
type string Voucher type
created_at string Date of voucher creation 
updated_at string Date of voucher change