Skip to content

No invoice returned if externalId contains spaces #64

@blinkbitcoinbot

Description

@blinkbitcoinbot

Migrated from GaloyMoney/blink#4530
Originally created by @krtk6160 on 7/1/2024, 5:11:20 PM

curl 'https://api.blink.sv/graphql' \
  -H 'accept: */*' \
  -H 'accept-language: en-GB,en;q=0.9' \
  -H 'apollo-expose-query-plan: true' \
  -H 'content-type: application/json' \
  -H 'dnt: 1' \
  -H 'origin: https://api.blink.sv' \
  -H 'priority: u=1, i' \
  -H 'referer: https://api.blink.sv/graphql' \
  -H 'sec-ch-ua: "Brave";v="125", "Chromium";v="125", "Not.A/Brand";v="24"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'sec-fetch-dest: empty' \
  -H 'sec-fetch-mode: cors' \
  -H 'sec-fetch-site: same-origin' \
  -H 'sec-gpc: 1' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36' \
  --data-raw $'{"query":"mutation LnInvoiceCreateOnBehalfOfRecipient($input: LnInvoiceCreateOnBehalfOfRecipientInput\u0021) {\\n        lnInvoiceCreateOnBehalfOfRecipient(input: $input) {\\n          invoice {\\n            paymentRequest\\n            paymentHash\\n          }\\n        }\\n      }","variables":{"input":{"externalId":"some id","amount":1,"recipientWalletId":"<some-id>"}},"operationName":"LnInvoiceCreateOnBehalfOfRecipient"}'```

Is this expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions