Activate Card via File

The API will be used to activate inventory in our system.

📘

Header Parameters

For Header references Click here

Sample Request

curl --location --request POST 'https://api.instantpay.in/cards/gift/viaFile' \
--header 'X-Ipay-Auth-Code: {{authCode}}' \
--header 'X-Ipay-Client-Id: {{clientId}}' \
--header 'X-Ipay-Client-Secret: {{clientSecret}}' \
--header 'X-Ipay-Endpoint-Ip: {{endPointIP}}' \
--header 'Content-Type: application/json' \
--form '[email protected]"/C:/Users/Aman/Downloads/giftCardBulkUploadSample.xlsx"' \
--form 'latitude="3*.***1"' \
--form 'longitude="7*.***4"' \
--form 'externalRef="1234567890"' \
--form 'iPin="9**7"'
POST /cards/gift/viaFile HTTP/1.1
Host: api.instantpay.in
X-Ipay-Auth-Code: {{authCode}}
X-Ipay-Client-Id: {{clientId}}
X-Ipay-Client-Secret: {{clientSecret}}
X-Ipay-Endpoint-Ip: {{endPointIP}}
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="/C:/Users/Aman/Downloads/giftCardBulkUploadSample.xlsx"
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

(data)
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="latitude"

3*.***1
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="longitude"

7*.***4
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="externalRef"

1234567890
----WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="iPin"

9**7
----WebKitFormBoundary7MA4YWxkTrZu0gW
Language
Click Try It! to start a request and see the response here!