POST api/Sendout

The entry point for sending out giftcards

Request Information

URI Parameters

None.

Body Parameters

SendoutRequest
NameDescriptionTypeAdditional information
AuthToken

Your unique partner identification token

globally unique identifier

Required

Buyer

All the information about the buyer

SendoutBuyerInfo

Required

Receiver

A list of all the receivers

Collection of SendoutReceiverInfo

Required

Product

The product to send out to the receivers

SendoutProductInfo

Required

Request Formats

application/json, text/json

Sample:
{
  "authToken": "38d45d4b-a91b-470f-b52b-379225de59d0",
  "buyer": {
    "name": "sample string 1",
    "companyName": "sample string 2",
    "email": "sample string 3",
    "number": 1,
    "refID": "sample string 4",
    "transactionID": "sample string 5",
    "ip": "sample string 6"
  },
  "receiver": [
    {
      "nameOrCompanyName": "sample string 1",
      "careOfOrAttention": "sample string 2",
      "email": "sample string 3",
      "number": 1,
      "address": "sample string 4",
      "zipcode": "sample string 5",
      "city": "sample string 6",
      "message": "sample string 7",
      "deliveryMethod": 1,
      "deliveryDatetime": "2018-01-22T14:52:19.4322593+01:00"
    },
    {
      "nameOrCompanyName": "sample string 1",
      "careOfOrAttention": "sample string 2",
      "email": "sample string 3",
      "number": 1,
      "address": "sample string 4",
      "zipcode": "sample string 5",
      "city": "sample string 6",
      "message": "sample string 7",
      "deliveryMethod": 1,
      "deliveryDatetime": "2018-01-22T14:52:19.4322593+01:00"
    }
  ],
  "product": {
    "token": "bff23f16-9f6f-4f59-9375-40a85dc69e4f",
    "generateGiftcard": true,
    "generatedGiftcardValue": 1,
    "deliveryForm": 0
  }
}

application/xml, text/xml

Sample:
<SendoutController.SendoutRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HuurayV3.Controllers">
  <AuthToken>38d45d4b-a91b-470f-b52b-379225de59d0</AuthToken>
  <Buyer>
    <CompanyName>sample string 2</CompanyName>
    <Email>sample string 3</Email>
    <IP>sample string 6</IP>
    <Name>sample string 1</Name>
    <Number>1</Number>
    <RefID>sample string 4</RefID>
    <TransactionID>sample string 5</TransactionID>
  </Buyer>
  <Product>
    <DeliveryForm>DelegatedCoupon</DeliveryForm>
    <GenerateGiftcard>true</GenerateGiftcard>
    <GeneratedGiftcardValue>1</GeneratedGiftcardValue>
    <Token>bff23f16-9f6f-4f59-9375-40a85dc69e4f</Token>
  </Product>
  <Receiver>
    <SendoutController.SendoutReceiverInfo>
      <Address>sample string 4</Address>
      <CareOfOrAttention>sample string 2</CareOfOrAttention>
      <City>sample string 6</City>
      <DeliveryDatetime>2018-01-22T14:52:19.4322593+01:00</DeliveryDatetime>
      <DeliveryMethod>Phone</DeliveryMethod>
      <Email>sample string 3</Email>
      <Message>sample string 7</Message>
      <NameOrCompanyName>sample string 1</NameOrCompanyName>
      <Number>1</Number>
      <Zipcode>sample string 5</Zipcode>
    </SendoutController.SendoutReceiverInfo>
    <SendoutController.SendoutReceiverInfo>
      <Address>sample string 4</Address>
      <CareOfOrAttention>sample string 2</CareOfOrAttention>
      <City>sample string 6</City>
      <DeliveryDatetime>2018-01-22T14:52:19.4322593+01:00</DeliveryDatetime>
      <DeliveryMethod>Phone</DeliveryMethod>
      <Email>sample string 3</Email>
      <Message>sample string 7</Message>
      <NameOrCompanyName>sample string 1</NameOrCompanyName>
      <Number>1</Number>
      <Zipcode>sample string 5</Zipcode>
    </SendoutController.SendoutReceiverInfo>
  </Receiver>
</SendoutController.SendoutRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object containing all the information of buyer, product and receivers.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.