Skip to content

Instantly share code, notes, and snippets.

@leofischer
Created February 28, 2018 16:36
Show Gist options
  • Save leofischer/dd39cdf9a53a536cf7c0f8d02655c0d2 to your computer and use it in GitHub Desktop.
Save leofischer/dd39cdf9a53a536cf7c0f8d02655c0d2 to your computer and use it in GitHub Desktop.
Chargeback Representation

#Uploading Evidence

curl -H "Accept: application/vnd.conekta-v1.0.0+json" \
     -H "Content-type: application/json" \
     -u 9YxqfRnx4sMQDnRsqdYn: \
     -X PUT -d '{
       "response_from_client":"Never delivered product.",
       "note":"Photoevidence of delivery",
       "followup_status":"customer_contacted",
       }
     }' https://api.conekta.io/charges/_charge_id_/chargeback

followup_statuses: ["customer_contacted", "customer_uncontacted", "customer_unreachable"]

#Setting additional attributes for the dispute

curl -H "Accept: application/vnd.conekta-v1.0.0+json" \
     -H "Content-type: application/json" \
     -u 9YxqfRnx4sMQDnRsqdYn: \
     -X POST -d '{
       "description":"Delivery receipt",
       "name":"https://my.aws.location/evidence.pdf",
       "file_name":"evidence.pdf",
       "type":"order"
     }' https://api.conekta.io/charges/_charge_id_/chargeback/files

types: ["contract", "identification", "order", "order_details", "other_evidence", "receipt_of_shipment"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment