Back to Collection Items
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
at System.Runtime.InteropServices.Marshal.StringToHGlobalUni(String s)
at Chilkat.CkMarshal.StringToX(String s, XString* x)
at Chilkat.Xml.LoadXml(String xmlData)
at ChilkatApi.XClass.LoadClass(String className, Log log)
at ChilkatApi.ApiCache.getApiClass(String className, Log log)
at ChilkatApi.ApiCache.getApiMethod(String className, String methodName, Log log)
at ChilkatCode.CodeGen.getXEntry(String className, String entryName)
at ChilkatCode.CodeGen.getEntryType(String varName, String entryName)
at ChilkatCode.Parser.objectAccess(String varName, Xml xml)
at ChilkatCode.Parser.varAccess(Xml xml)
at ChilkatCode.Parser.primaryExpression(Xml xml)
at ChilkatCode.Parser.unaryExpression(Xml xml)
at ChilkatCode.Parser.multiplicativeExpression(Xml xml)
at ChilkatCode.Parser.additiveExpression(Xml xml)
at ChilkatCode.Parser.relationalExpression(Xml xml)
at ChilkatCode.Parser.equalityExpression(Xml xml)
at ChilkatCode.Parser.andExpression(Xml xml)
at ChilkatCode.Parser.expression(Xml xml)
at ChilkatCode.Parser.assignment()
at ChilkatCode.Parser.statement()
at ChilkatCode.Parser.Chilkat()
at ChilkatCode.Parser.Parse()
at ChilkatCode.Compile.CompileForToolsIO(String srcCode, String langHashKey, StringBuilder sbHtmlOut)
Curl Command
curl -X POST
-H "Authorization: Bearer YOUR_ACCESS_TOKEN_HERE"
-H "Accept: application/com.reloadly.giftcards-v1+json"
-H "Content-Type: application/json"
-d '{
"productId": 120,
"countryCode": "US",
"quantity": 1,
"unitPrice": 1,
"customIdentifier": "obucks10",
"senderName": "John Doe",
"recipientEmail": "anyone@email.com",
"recipientPhoneDetails": {
"countryCode": "ES",
"phoneNumber": "657829900"
}
}'
https://giftcards.reloadly.com/orders
Postman Collection Item JSON
{
"name": "Order",
"request": {
"method": "POST",
"header": [
{
"key": "Authorization",
"value": "Bearer YOUR_ACCESS_TOKEN_HERE",
"type": "text"
},
{
"key": "Accept",
"value": "application/com.reloadly.giftcards-v1+json",
"type": "text"
},
{
"key": "Content-Type",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"productId\": 120,\r\n \"countryCode\": \"US\",\r\n \"quantity\": 1,\r\n \"unitPrice\": 1,\r\n \"customIdentifier\": \"obucks10\",\r\n \"senderName\": \"John Doe\",\r\n \"recipientEmail\": \"anyone@email.com\",\r\n \"recipientPhoneDetails\": {\r\n \"countryCode\": \"ES\",\r\n \"phoneNumber\": \"657829900\"\r\n }\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://giftcards.reloadly.com/orders",
"protocol": "https",
"host": [
"giftcards",
"reloadly",
"com"
],
"path": [
"orders"
]
}
},
"response": [
]
}