Skip to content

Instantly share code, notes, and snippets.

@angusluk
Created August 29, 2019 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angusluk/8bb5916191121a3218412957aa72f35b to your computer and use it in GitHub Desktop.
Save angusluk/8bb5916191121a3218412957aa72f35b to your computer and use it in GitHub Desktop.
create order curl
curl -X POST \
https://app.2vanx.com/graphql \
-H 'Accept: */*' \
-H 'Accept-Encoding: gzip, deflate' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Length: 2085' \
-H 'Content-Type: application/json' \
-H 'Cookie: __cfduid=d97f45b56cc1904b2c3a89228182a84bb1553585017; __profilin=p%3Dt%2Ca%3D83c10e4d03041bb46290640e89001a68%7Cb3f06bbad51eee696929d04661f9048c' \
-H 'Host: app.2vanx.com' \
-H 'Postman-Token: 05b82ed4-77f1-4c4f-842d-892f9c492aed,87f73322-003a-4ce4-95b7-fd270a5d371a' \
-H 'User-Agent: PostmanRuntime/7.15.2' \
-H 'cache-control: no-cache' \
-d '{
"query": "
mutation (
$regformAccessKey: String!
$attendeesCount: Int
) {
orderCreate(input: {
regformAccessKey: $regformAccessKey,
attendeesCount: $attendeesCount
}) {
errors {
type
path
message
details {
key
value
}
}
order {
id
accessKey
availablePaymentMethods
createdAt
expiresAt
mainForm {
id
pages {
edges {
node {
elements {
edges {
node {
id
__typename
... on RegformFieldElement {
labelText
}
... on RegformMcQuestionFieldElement {
availableChoices {
edges {
node {
id
choiceText
}
}
}
}
}
}
}
}
}
}
}
attendees {
edges {
node {
attendeeId
}
}
}
tickets {
edges {
node {
id
name
price {
amount
currencyCode
}
discountedPrice {
amount
currencyCode
}
remainingQuota
salesStartAt
salesEndAt
details
}
}
}
}
}
}
",
"variables": {
"regformAccessKey": "9fd666a9-11ec-48aa-9127-dcfdb78fe960",
"attendeesCount": 1
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment