Skip to content

Checkout Id deserializes as null in Checkout / CheckoutSuccess responses #60

@visualies

Description

@visualies

Using SumUp .NET SDK 0.0.9, checkout create/list requests succeed, but the deserialized SDK models return Id == null even though the raw SumUp API http response includes a valid id.

What happens

CreateAsync() and ListAsync() both return objects where:

  • Id == null
var created = await client.Checkouts.CreateAsync(request);
var listed = await client.Checkouts.ListAsync(checkoutReference: request.CheckoutReference);

Both SDK responses contain checkout data, but created.Data?.Id / listed.Data?.FirstOrDefault()?.Id are null.

Im not sure but I think the issue is that the generated response models define some fields as getter only.
The same pattern is also used in CheckoutSuccess for Id, TransactionId, and TransactionCode.

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