Hello
I am looking to parse JSON from a payment provider and populate into a SharePoint list. I have successfully gotten the JSON but am having trouble getting each record into SharePoint. I have created one record with blank information.
JSON schema:
{
"type": "object",
"properties": {
"object": {
"type": "string"
},
"id": {
"type": "string"
},
"amount": {
"type": "integer"
},
"amount_refunded": {
"type": "integer"
},
"application": {},
"application_fee": {},
"application_fee_amount": {},
"balance_transaction": {
"type": "string"
},
"billing_details": {
"type": "object",
"properties": {
"address": {
"type": "object",
"properties": {
"city": {},
"country": {},
"line1": {},
"line2": {},
"postal_code": {},
"state": {}
}
},
"email": {},
"name": {
"type": "string"
},
"phone": {}
}
},
"calculated_statement_descriptor": {},
"captured": {
"type": "boolean"
},
"created": {
"type": "integer"
},
"currency": {
"type": "string"
},
"customer": {},
"description": {
"type": "string"
},
"disputed": {
"type": "boolean"
},
"failure_code": {},
"failure_message": {},
"fraud_details": {
"type": "object",
"properties": {}
},
"invoice": {},
"livemode": {
"type": "boolean"
},
"metadata": {
"type": "object",
"properties": {
"uuid": {},
"webform": {},
"webform_id": {},
"webform_submission_id": {},
"course": {},
"offering": {},
"company": {},
"phone": {}
}
},
"on_behalf_of": {},
"order": {},
"outcome": {},
"paid": {
"type": "boolean"
},
"payment_intent": {},
"payment_method": {
"type": "string"
},
"payment_method_details": {
"type": "object",
"properties": {
"card": {
"type": "object",
"properties": {
"brand": {
"type": "string"
},
"checks": {
"type": "object",
"properties": {
"address_line1_check": {},
"address_postal_code_check": {},
"cvc_check": {
"type": "string"
}
}
},
"country": {
"type": "string"
},
"exp_month": {
"type": "integer"
},
"exp_year": {
"type": "integer"
},
"fingerprint": {
"type": "string"
},
"funding": {
"type": "string"
},
"installments": {},
"last4": {
"type": "string"
},
"network": {
"type": "string"
},
"three_d_secure": {},
"wallet": {}
}
},
"type": {
"type": "string"
}
}
},
"receipt_email": {},
"receipt_number": {},
"receipt_url": {
"type": "string"
},
"refunded": {
"type": "boolean"
},
"refunds": {
"type": "object",
"properties": {
"object": {
"type": "string"
},
"data": {
"type": "array"
},
"has_more": {
"type": "boolean"
},
"url": {
"type": "string"
}
}
},
"review": {},
"shipping": {},
"source_transfer": {},
"statement_descriptor": {},
"statement_descriptor_suffix": {},
"status": {
"type": "string"
},
"transfer_data": {},
"transfer_group": {}
}
}
Overall Flow
Expansion of parsing and creating an array
The Get items obtains values from the current SharePoint list. The conditions looks at if the item is already in the SharePoint list. These seem to be working.
Populating sharepoint list