Skip to content

Commit

Permalink
Add bruno request for checkout metadata (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzuraw authored Apr 5, 2024
1 parent 8378f43 commit 8b9581d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
48 changes: 48 additions & 0 deletions apps/avatax/bruno/5._Update_checkout_metadata.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
meta {
name: 5. Update checkout metadata
type: graphql
seq: 5
}

post {
url: {{API_URL}}
body: graphql
auth: bearer
}

auth:bearer {
token: {{storefrontUserToken}}
}

body:graphql {
mutation UpdateMetadata($checkoutId: ID!, $input: [MetadataInput!]!) {
updateMetadata(id: $checkoutId, input: $input) {
errors {
field
message
}
item {
... on Checkout {
id
metadata {
key
value
}
}
}
}
}

}

body:graphql:vars {
{
"checkoutId": "{{checkoutId}}",
"input": [
{
"key": "avataxCustomerCode",
"value": "code"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: 5. Update delivery method
name: 6. Update delivery method
type: graphql
seq: 5
seq: 6
}

post {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
meta {
name: 6. Complete checkout
name: 7. Complete checkout
type: graphql
seq: 6
seq: 7
}

post {
Expand Down

0 comments on commit 8b9581d

Please sign in to comment.